#include <QCoreApplication>
#include<QDir>
#include<QDebug>


int main(int argc, char *argv[])
{
    QCoreApplication a(argc, argv);

    QDir d("F:/app/classpath");

    qDebug() << d;

    auto ls = d.entryList();

    QString cp;
    foreach (auto &f, ls) {
        if(f.endsWith(".jar")){

            cp.append(d.absolutePath() + "/" +f+";");
        }
    }
    qDebug()<<cp;



    return a.exec();
}
